<template>
	<view class="container">
		<view class="tilte">hello</view>
		<view class="desc">请确保以下信息时本人名下最新且有效的身份信息</view>
		<view class="recognize-wrapper mt-30">
			<view class="flex align-center justify-between">
				<view class="label-wrapper flex flex-column">
					<text class="label">基础认证</text>
					<text class="label-desc">完成基础认证即可入金</text>
				</view>
				<view v-if="recognizeInfo.realName&&recognizeInfo.IDNumber" class="recognize-complate-icon"></view>
				<router-link v-else class="to-recognize-link flex align-center" to="/pages/recognize-submit/recognize-submit">
					<text class="recognize-text">去填写</text>
				</router-link>
			</view>
			<view class="flex justify-between mt-30">
				<text class="recognize-label">姓名</text>
				<text class="recognize-value">{{recognizeInfo.realName?recognizeInfo.realName:'--'}}</text>
			</view>
			<view class="flex justify-between mt-30">
				<text class="recognize-label">证件号码</text>
				<text class="recognize-value">{{recognizeInfo.IDNumber?recognizeInfo.IDNumber:"--"}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				recognizeInfo:{}
			};
		},
		async onShow() {
			try{
				this.recognizeInfo=await this.$u.api.recognizeInfoApi()
			}catch(e){
				//TODO handle the exception
			}
			
		}
	}
</script>

<style lang="scss">
.container{
		padding: 30rpx;
		.tilte{
			font-size: 44rpx;
			font-weight: 500;
			color: #000000;
		}
		.desc{
			margin-top: 10rpx;
			font-size: 28rpx;
			color: #999999;
		}
		.recognize-wrapper{
			padding: 40rpx 40rpx 34rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 10rpx 4rpx rgba(192,192,192,0.04);
			border-radius: 16rpx;
			.label-wrapper{
				.label{
					font-size: 32rpx;
					font-weight: 500;
					color: #000000;
				}
				.label-desc{
					margin-top: 10rpx;
					font-size: 24rpx;
					color: $color-pink;
				}
			}
			.recognize-complate-icon{
				width: 128rpx;
				height: 46rpx;
				background: url("~@/static/images/recognize/recognize-complate-icon.png");
				background-size: 100% 100%;
			}
			.to-recognize-link{
				.recognize-text{
					color: $color-pink;
					margin-right: 20rpx;
					font-size: 24rpx;
				}
				&::after{
					content: " ";
					width: 0;
					height: 0;
					border-top: 10rpx solid transparent;
					border-right: 10rpx solid transparent;
					border-bottom: 10rpx solid transparent;
					border-left: 10rpx solid $color-pink;
				}
			}
			.recognize-label{
				font-size: 30rpx;
				color: #333333;
			}
			.recognize-value{
				font-size: 30rpx;
				color: #999999;
			}
		}
}
</style>
